package com.hxk.aop.demo;

import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;
@Component("demo3")
public class Demo3 {

	@Pointcut("execution(* com.hxk.aop.demo.Demo3.method())")
	public void method() {
		System.out.println("demo.method()");
	}
	@Pointcut("execution(* com.hxk.aop.demo.Demo3.method1())")
	public void method1() {
		int a = 1/0;
		System.out.println("demo.method1()");
	}
	@Pointcut("execution(* com.hxk.aop.demo.Demo3.method2())")
	public void method2() {
		System.out.println("demo.method2()");
	}
}
